package com.ruoyi.erp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.erp.mapper.GlCashtableMapper;
import com.ruoyi.erp.domain.GlCashtable;
import com.ruoyi.erp.service.IGlCashtableService;

/**
 * 凭证现金流量Service业务层处理
 * 
 * @author ztj
 * @date 2023-04-28
 */
@Service
public class GlCashtableServiceImpl implements IGlCashtableService 
{
    @Autowired
    private GlCashtableMapper glCashtableMapper;

    /**
     * 查询凭证现金流量
     * 
     * @param iYear 凭证现金流量主键
     * @return 凭证现金流量
     */
    @Override
    public GlCashtable selectGlCashtableByIYear(String iYear)
    {
        return glCashtableMapper.selectGlCashtableByIYear(iYear);
    }

    /**
     * 查询凭证现金流量列表
     * 
     * @param glCashtable 凭证现金流量
     * @return 凭证现金流量
     */
    @Override
    public List<GlCashtable> selectGlCashtableList(GlCashtable glCashtable)
    {
        return glCashtableMapper.selectGlCashtableList(glCashtable);
    }

    /**
     * 新增凭证现金流量
     * 
     * @param glCashtable 凭证现金流量
     * @return 结果
     */
    @Override
    public int insertGlCashtable(GlCashtable glCashtable)
    {
        return glCashtableMapper.insertGlCashtable(glCashtable);
    }

    /**
     * 修改凭证现金流量
     * 
     * @param glCashtable 凭证现金流量
     * @return 结果
     */
    @Override
    public int updateGlCashtable(GlCashtable glCashtable)
    {
        return glCashtableMapper.updateGlCashtable(glCashtable);
    }

    /**
     * 批量删除凭证现金流量
     * 
     * @param iYears 需要删除的凭证现金流量主键
     * @return 结果
     */
    @Override
    public int deleteGlCashtableByIYears(String[] iYears)
    {
        return glCashtableMapper.deleteGlCashtableByIYears(iYears);
    }

    /**
     * 删除凭证现金流量信息
     * 
     * @param iYear 凭证现金流量主键
     * @return 结果
     */
    @Override
    public int deleteGlCashtableByIYear(String iYear)
    {
        return glCashtableMapper.deleteGlCashtableByIYear(iYear);
    }
}
